/*
* @Author: JINPENG
* @Date:   2018-07-04 20:36:17
* @Last Modified by:   JINPENG
* @Last Modified time: 2018-07-23 21:41:23
*/
'use strict';

var _mm = require('util/mm.js');

var _product = {
     // 获取商品列表
    getProductList : function(listParam, resolve, reject){
        _mm.request({
            url     : _mm.getServerUrl('/product/list.do'),
            data    : listParam,
            success : resolve,
            error   : reject
        });
    },
    //获取商品详细信息
    getProductDetail : function(productId, resolve, reject){
         _mm.request({
            url     : _mm.getServerUrl('/product/detail.do'),
            data    : {
                 productId : productId
            },
            success : resolve,
            error   : reject
        });
    },
  }

module.exports = _product;